import request from '@/utils/request.js'

export function getArticeList (params) {
  return request({
    url: '/v1_1/articles',
    params
  })
}
// 频道所有列表
export function getAllChannel () {
  return request({
    url: '/v1_0/channels'
  })
}
// id获取文章详情
export function getArticleDetail (id) {
  return request({
    url: '/v1_0/articles/' + id
  })
}

export function postPublish (data) {
  return request({
    url: '/v1_0/comments',
    method: 'POST',
    data
  })
}
